//
// Wrap.cpp for Wrap in /home/seth/svn/rush-2/ex01
// 
// Made by kevin lansel
// Login   <lansel_k@epitech.net>
// 
// Started on  Sat Jan 19 13:28:31 2013 kevin lansel
// Last update Sat Jan 19 15:08:15 2013 kevin lansel
//

#include	<ostream>
#include	<string>
#include	"IObject.hh"
#include	"Wrap.hh"

Wrap::Wrap() : Object(), Open(true), Obj(NULL)
{
}

Wrap::Wrap(const Warp &other) : Obj(other.getObj())
{
}

Wrap::~Wrap()
{
}

Object	*Wrap::openMe()
{
  Object *tmp;
  tmp = this->Obj;
  this->Obj = NULL;
  return (tmp);
}

void	Wrap::wrapMeThat(Object *Obj)
{
  if (this->Obj == NULL)
    {
      this->Obj = obj;
      std::cout << "tuuuut tuuut tuut" << std::cout;
    }
  else
    std::cout << "I can't wrap because the wrap is ever full" << std::endl;
}

void	Wrap::isTaken() const;
{
  sdt::cout << "whistles while working" <<std::endl;
}

void	Wrap::setObj(Object *obj)
{
  this->Obj = obj;
}

Object	*Wrap::getObj(Object *obj)
{
  return (this->Obj);
}
